package com.gome.axwl.aoc.entity.dto;

import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @Description: 积分规则dto
 * @Auther: yinyuxin@gome.com.cn
 * @Date: 2018/4/25 14:16
 */
public class IntegrationRuleDto implements Serializable {

    private static final long serialVersionUID = 4314073750020532694L;

    /**
     * 主键ID
     */
    @ApiModelProperty(value = "主键id")
    private Integer id;

    /**
     * 积分规则类别 0：好评率  1：准时送达率 2：接单天数
     */
    @ApiModelProperty(value = "积分规则类别 0：好评率  1：准时送达率 2：接单天数")
    private Byte ruleType;

    /**
     * 积分规则所属年月
     */
    @ApiModelProperty(value = "积分规则所属年月{STRING}")
    private String ruleDate;

    /**
     * 积分规则范围起始数
     */
    @ApiModelProperty(value = "积分规则范围起始数")
    private Integer ruleStartNum;

    /**
     * 积分规则范围截止数
     */
    @ApiModelProperty(value = "积分规则范围截止数")
    private Integer ruleEndNum;

    /**
     * 积分规则操作  0：减分  1：加分
     */
    @ApiModelProperty(value = "积分规则操作  0：减分  1：加分")
    private Byte ruleIsAdd;

    /**
     * 积分数值（真实数据=当前数据除以10）
     */
    @ApiModelProperty(value = "积分数值")
    private BigDecimal ruleIntegral;

    /**
     * 创建时间
     */
    private Date createDate;

    /**
     * 创建人编码
     */
    private String createUserCode;

    /**
     * 最后一次修改时间
     */
    private Date modifyDate;

    /**
     * 最后一次修改人编码
     */
    private String modifyUserCode;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Byte getRuleType() {
        return ruleType;
    }

    public void setRuleType(Byte ruleType) {
        this.ruleType = ruleType;
    }

    public String getRuleDate() {
        return ruleDate;
    }

    public void setRuleDate(String ruleDate) {
        this.ruleDate = ruleDate;
    }

    public Integer getRuleStartNum() {
        return ruleStartNum;
    }

    public void setRuleStartNum(Integer ruleStartNum) {
        this.ruleStartNum = ruleStartNum;
    }

    public Integer getRuleEndNum() {
        return ruleEndNum;
    }

    public void setRuleEndNum(Integer ruleEndNum) {
        this.ruleEndNum = ruleEndNum;
    }

    public Byte getRuleIsAdd() {
        return ruleIsAdd;
    }

    public void setRuleIsAdd(Byte ruleIsAdd) {
        this.ruleIsAdd = ruleIsAdd;
    }

    public BigDecimal getRuleIntegral() {
        return ruleIntegral;
    }

    public void setRuleIntegral(BigDecimal ruleIntegral) {
        this.ruleIntegral = ruleIntegral!=null?ruleIntegral.setScale(1,BigDecimal.ROUND_HALF_UP):ruleIntegral;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public String getCreateUserCode() {
        return createUserCode;
    }

    public void setCreateUserCode(String createUserCode) {
        this.createUserCode = createUserCode;
    }

    public Date getModifyDate() {
        return modifyDate;
    }

    public void setModifyDate(Date modifyDate) {
        this.modifyDate = modifyDate;
    }

    public String getModifyUserCode() {
        return modifyUserCode;
    }

    public void setModifyUserCode(String modifyUserCode) {
        this.modifyUserCode = modifyUserCode;
    }


}
